SftTree/OCX 7.0

SftTree.CellEditStyle Property

Softel vdm, Inc.

Defines the cell editing display style.

Deprecated - Provided for compatibility with earlier versions only - See Cell Editing
This property continues to be used with Internet Explorer as it does not support the new cell editing mechanisms introduced with SftTree/OCX 7.0.

Syntax       

Get

VB.NET

Style = object.CellEditStyle  As SftTreeCellEditStyleConstants

VB

Style = object.CellEditStyle  As SftTreeCellEditStyleConstants

C#.NET

SftTreeCellEditStyleConstants Style = object.CellEditStyle;

VC++

enum SftTreeCellEditStyleConstants Style = object->CellEditStyle;
enum SftTreeCellEditStyleConstants Style = object->GetCellEditStyle();

C

HRESULT object->get_CellEditStyle(enum SftTreeCellEditStyleConstants* Style);

Delphi

Style := object.CellEditStyle  : TOleEnum;

Put

VB.NET

object.CellEditStyle = Style  As SftTreeCellEditStyleConstants

VB

object.CellEditStyle = Style  As SftTreeCellEditStyleConstants

C#.NET

SftTreeCellEditStyleConstants object.CellEditStyle = Style;

VC++

enum SftTreeCellEditStyleConstants object->CellEditStyle = Style;
void object->PutCellEditStyle(enum SftTreeCellEditStyleConstants Style);

C

HRESULT object->put_CellEditStyle(enum SftTreeCellEditStyleConstants Style);

Delphi

object.CellEditStyle := Style  : TOleEnum;

object

A SftTree object.

Style

Defines the cell editing display style.

Style

Value

Description

cellSftTreeNormal 

0

The edit control or combo box used for cell editing is sized to fit exactly within the cell being edited. This may clip the text displayed in the control.  The ItemEditFont property can be used to reduce the size of the font used.

cellSftTreeAutoSize 

1

The edit control or combo box used for cell editing is sized automatically to fit the text based on the font used for cell editing (see ItemEditFont).  The control may extend beyond the borders of the cell being edited.

Comments

The CellEditStyle property defines the cell editing display style.

Deprecated - Provided for compatibility with earlier versions only - See Cell Editing
This property continues to be used with Internet Explorer as it does not support the new cell editing mechanisms introduced with SftTree/OCX 7.0.

When using a CellEditStyle of cellSftTreeNormal, the text in the edit control or combo box control may be clipped vertically if it is too large to fit within the control.  The control is sized to fit exactly within the cell being edited.

If cellSftTreeAutoSize is used, the control is adjusted based on the ItemEditFont property, so the text is not clipped.  However, the control may exceed the boundaries of the cell being edited. 

The CellEditStyle property is used for the edit control and combo box when editing cells using the StartEdit, StartComboEdit and StartCombo methods.  It is not used for cell editing started using the Cell.Edit method.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com